package com.dxy.yesas2020goals.study.partone.disignpattern.adapterpattern.login.adapterv2.adapters;

import com.dxy.yesas2020goals.study.partone.disignpattern.adapterpattern.login.ResultMsg;
import com.dxy.yesas2020goals.study.partone.disignpattern.adapterpattern.login.adapterv2.IPassportForThird;
import com.dxy.yesas2020goals.study.partone.disignpattern.adapterpattern.login.adapterv2.PassportForThirdAdapter;

/**
 * @author victorydeng
 * @Classname EmailLoginDector
 * @Description TODO
 * @Date 2020/3/21 13:23
 * @Created by victorydeng
 */
public class EmailLoginDector extends PassportForThirdAdapter {

    private IPassportForThird passportForThirdAdapter;

    public EmailLoginDector(IPassportForThird passportForThirdAdapter){
        this.passportForThirdAdapter = passportForThirdAdapter;
    }

    public ResultMsg loginByEmail(String Email) {
        return super.processLogin(Email, EmailLoginAdapter.class);
    }
}